<%@ page contentType="text/html; charset=utf-8" language="java" %>
<%@ page isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Pragma" content="no-cache">
<link href="../style.css" rel="stylesheet" type="text/css">
<link href="<c:url value='/admin/assets/style/jqueryform.css'/>" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/admin/assets/js/util.js"></script>
<script type="text/javascript" src="<c:url value='/admin/assets/js/jquery/jquery.js'/>"></script>
<script type="text/javascript" src="<c:url value='/admin/assets/js/jquery/jquery-validate/lib/jquery.metadata.js'/>"></script>
<script type="text/javascript" src="<c:url value='/admin/assets/js/jquery/jquery-validate/jquery.validate.js'/>"></script>
<script type="text/javascript" language="javascript">
// <![CDATA[
$(document).ready(function() {

	var validator = $("#questionForm").validate({
		rules: {
			name: 	        		{required: true}
		},
		messages: {
					bidding: { 
						required:"请输入问题标题."
					}
		} 
	});




<c:if test="${not empty requestScope.message}">
$("#infoSpan").html("<img src='<c:url value='/admin/assets/images/flag.gif'/>'><font color='#C00000'><c:out value='${requestScope.message}' escapeXml='false'/></font>");
</c:if>


<c:if test="${null != requestScope.question}">
$("#questionForm").attr('action',"<c:url value='/admin/article/question-edit.ac'/>");
</c:if>

});
// ]]>
</script>
<script language="javascript">

window.onload = function()
{
	
}
</script>
</head>
<body class="main">
<form action="<c:url value='/admin/article/question-add.ac'/>" method="post" name="questionForm" id="questionForm">
<input type="hidden" id="id" name="id" value="${requestScope.question.id}"/>
<table class="container" cellpadding="0" cellspacing="0">
<tr><td>
<table width="929" align="center" cellpadding="0" cellspacing="0" class="dialog">
<tr><td >
<table class="header" cellpadding="0" cellspacing="0">
<tr>
<td><c:choose> 
<c:when test="${null != requestScope.question}">修改</c:when> 
<c:otherwise>添加</c:otherwise> 
</c:choose> 
常见问题</td>
</tr>
</table>
</td></tr>
<tr>
  <td   class="body">
<table class="body" cellpadding="0" cellspacing="0">
<tr>
  <td colspan="2" align="center" id="errorTd">&nbsp;</td>
</tr>
  <tr>
  <td width="14%" align="right"><strong>问题标题：</strong></td>
  <td width="30%"><input type="text" name="name" id="name" size="80" maxlength="100" value="${requestScope.question.name}"></td>
  </tr>
  <tr>
  <td align="right"><strong>问题答案：</strong></td>
  <td>
  <FCK:editor instanceName="content" value=" ${requestScope.question.content}" toolbarSet="szl"  height="400" width="700">
	<FCK:config SkinPath="skins/office2003/" />
</FCK:editor>
  </td>
</tr>
    
</table>
</td></tr>
<tr><td>
<table class="footer" cellpadding="0" cellspacing="0">
<tr><td>
<input class="button" type="submit" value="确定">
&nbsp;&nbsp;<input class="button" type="button" value="返回" onClick="document.location='javascript:history.go(-1)'">
</td></tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
</form>


</body>
</html>
